package lab02.test12;

public class test12 {

    public static void main(String[] args)
    {

    Circle c=new Circle();
    c.r=3;
    System.out.println("圆的面积为"+c.area());
    System.out.println("圆的周长为"+c.perimeter());
    Rectangular R=new Rectangular();
    R.length=6;
    R.width=5;
    System.out.println("矩形的面积为"+R.area());
    System.out.println("矩形的周长为"+R.perimeter());

}

}
